]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
a11y: calendar: add accessible name for next/prev month buttons
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 27 Aug 2013 11:50:25 +0000 (13:50 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 28 Aug 2013 14:23:05 +0000 (16:23 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=706903

js/ui/calendar.js

index 29fe0089d847c3a197e454a76f449d466df3a28c..cb5a2940ea97e047c3adab1e5071a5aa57e9e190 100644 (file)
@@ -444,6 +444,7 @@ const Calendar = new Lang.Class({
                        { row: 0, col: 0, col_span: offsetCols + 7 });
 
         this._backButton = new St.Button({ style_class: 'calendar-change-month-back',
+                                           accessible_name: _("Previous month"),
                                            can_focus: true });
         this._topBox.add(this._backButton);
         this._backButton.connect('clicked', Lang.bind(this, this._onPrevMonthButtonClicked));
@@ -452,6 +453,7 @@ const Calendar = new Lang.Class({
         this._topBox.add(this._monthLabel, { expand: true, x_fill: false, x_align: St.Align.MIDDLE });
 
         this._forwardButton = new St.Button({ style_class: 'calendar-change-month-forward',
+                                              accessible_name: _("Next month"),
                                               can_focus: true });
         this._topBox.add(this._forwardButton);
         this._forwardButton.connect('clicked', Lang.bind(this, this._onNextMonthButtonClicked));